<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LxLog: Time类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">LxLog
   </div>
   <div id="projectbrief">日志库</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_time-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">Time类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_time_8h_source.html">Time.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad5c7fc0457ae7a368cfe0dd089970ad8" id="r_ad5c7fc0457ae7a368cfe0dd089970ad8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad5c7fc0457ae7a368cfe0dd089970ad8">Time</a> (int year, int month, int day, int hour, int minute, int second)</td></tr>
<tr class="separator:ad5c7fc0457ae7a368cfe0dd089970ad8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade7face40dbabb5ee40b34e2584ca731" id="r_ade7face40dbabb5ee40b34e2584ca731"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ade7face40dbabb5ee40b34e2584ca731">getYear</a> () const</td></tr>
<tr class="memdesc:ade7face40dbabb5ee40b34e2584ca731"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回年  <br /></td></tr>
<tr class="separator:ade7face40dbabb5ee40b34e2584ca731"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92ebae2cc25d4d448b934ab632577cb7" id="r_a92ebae2cc25d4d448b934ab632577cb7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a92ebae2cc25d4d448b934ab632577cb7">getMonth</a> () const</td></tr>
<tr class="memdesc:a92ebae2cc25d4d448b934ab632577cb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回月  <br /></td></tr>
<tr class="separator:a92ebae2cc25d4d448b934ab632577cb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a0aaa223057af66b55e0287a6219262" id="r_a1a0aaa223057af66b55e0287a6219262"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1a0aaa223057af66b55e0287a6219262">getDay</a> () const</td></tr>
<tr class="memdesc:a1a0aaa223057af66b55e0287a6219262"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回日  <br /></td></tr>
<tr class="separator:a1a0aaa223057af66b55e0287a6219262"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacb846812dccbf244d52e0f237ad0026" id="r_aacb846812dccbf244d52e0f237ad0026"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aacb846812dccbf244d52e0f237ad0026">getHour</a> () const</td></tr>
<tr class="memdesc:aacb846812dccbf244d52e0f237ad0026"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回时  <br /></td></tr>
<tr class="separator:aacb846812dccbf244d52e0f237ad0026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a809250b6139afebe7c41a1fe6c857172" id="r_a809250b6139afebe7c41a1fe6c857172"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a809250b6139afebe7c41a1fe6c857172">getMinute</a> () const</td></tr>
<tr class="memdesc:a809250b6139afebe7c41a1fe6c857172"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回分  <br /></td></tr>
<tr class="separator:a809250b6139afebe7c41a1fe6c857172"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d3681b3ccd635d0a285b3d628e03d60" id="r_a1d3681b3ccd635d0a285b3d628e03d60"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1d3681b3ccd635d0a285b3d628e03d60">getSecond</a> () const</td></tr>
<tr class="memdesc:a1d3681b3ccd635d0a285b3d628e03d60"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回秒  <br /></td></tr>
<tr class="separator:a1d3681b3ccd635d0a285b3d628e03d60"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:ad2329c25520f4f561e7143cef5997279" id="r_ad2329c25520f4f561e7143cef5997279"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad2329c25520f4f561e7143cef5997279">mYear</a> {0}</td></tr>
<tr class="separator:ad2329c25520f4f561e7143cef5997279"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13b7812113b018f25d761e8790237134" id="r_a13b7812113b018f25d761e8790237134"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a13b7812113b018f25d761e8790237134">mMonth</a> {0}</td></tr>
<tr class="separator:a13b7812113b018f25d761e8790237134"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62567f3af7e6a62994c1865d5ba5fc27" id="r_a62567f3af7e6a62994c1865d5ba5fc27"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a62567f3af7e6a62994c1865d5ba5fc27">mDay</a> {0}</td></tr>
<tr class="separator:a62567f3af7e6a62994c1865d5ba5fc27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcca4912dd774e773a9e50c02dd4496f" id="r_afcca4912dd774e773a9e50c02dd4496f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afcca4912dd774e773a9e50c02dd4496f">mHour</a> {0}</td></tr>
<tr class="separator:afcca4912dd774e773a9e50c02dd4496f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab568af317099b3a68b068aa13d449d00" id="r_ab568af317099b3a68b068aa13d449d00"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab568af317099b3a68b068aa13d449d00">mMinute</a> {0}</td></tr>
<tr class="separator:ab568af317099b3a68b068aa13d449d00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff1414aeb2f65e4a53041f3c0376af6d" id="r_aff1414aeb2f65e4a53041f3c0376af6d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aff1414aeb2f65e4a53041f3c0376af6d">mSecond</a> {0}</td></tr>
<tr class="separator:aff1414aeb2f65e4a53041f3c0376af6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><dl class="section author"><dt>作者</dt><dd>liangxi </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2024/3/25 时间类实体 </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ad5c7fc0457ae7a368cfe0dd089970ad8" name="ad5c7fc0457ae7a368cfe0dd089970ad8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5c7fc0457ae7a368cfe0dd089970ad8">&#9670;&#160;</a></span>Time()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Time::Time </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>year</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>month</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>day</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>hour</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>minute</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>second</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a1a0aaa223057af66b55e0287a6219262" name="a1a0aaa223057af66b55e0287a6219262"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a0aaa223057af66b55e0287a6219262">&#9670;&#160;</a></span>getDay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::getDay </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回日 </p>

</div>
</div>
<a id="aacb846812dccbf244d52e0f237ad0026" name="aacb846812dccbf244d52e0f237ad0026"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacb846812dccbf244d52e0f237ad0026">&#9670;&#160;</a></span>getHour()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::getHour </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回时 </p>

</div>
</div>
<a id="a809250b6139afebe7c41a1fe6c857172" name="a809250b6139afebe7c41a1fe6c857172"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a809250b6139afebe7c41a1fe6c857172">&#9670;&#160;</a></span>getMinute()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::getMinute </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回分 </p>

</div>
</div>
<a id="a92ebae2cc25d4d448b934ab632577cb7" name="a92ebae2cc25d4d448b934ab632577cb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92ebae2cc25d4d448b934ab632577cb7">&#9670;&#160;</a></span>getMonth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::getMonth </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回月 </p>

</div>
</div>
<a id="a1d3681b3ccd635d0a285b3d628e03d60" name="a1d3681b3ccd635d0a285b3d628e03d60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d3681b3ccd635d0a285b3d628e03d60">&#9670;&#160;</a></span>getSecond()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::getSecond </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回秒 </p>

</div>
</div>
<a id="ade7face40dbabb5ee40b34e2584ca731" name="ade7face40dbabb5ee40b34e2584ca731"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade7face40dbabb5ee40b34e2584ca731">&#9670;&#160;</a></span>getYear()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::getYear </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回年 </p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a62567f3af7e6a62994c1865d5ba5fc27" name="a62567f3af7e6a62994c1865d5ba5fc27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62567f3af7e6a62994c1865d5ba5fc27">&#9670;&#160;</a></span>mDay</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::mDay {0}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="afcca4912dd774e773a9e50c02dd4496f" name="afcca4912dd774e773a9e50c02dd4496f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcca4912dd774e773a9e50c02dd4496f">&#9670;&#160;</a></span>mHour</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::mHour {0}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab568af317099b3a68b068aa13d449d00" name="ab568af317099b3a68b068aa13d449d00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab568af317099b3a68b068aa13d449d00">&#9670;&#160;</a></span>mMinute</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::mMinute {0}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a13b7812113b018f25d761e8790237134" name="a13b7812113b018f25d761e8790237134"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13b7812113b018f25d761e8790237134">&#9670;&#160;</a></span>mMonth</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::mMonth {0}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aff1414aeb2f65e4a53041f3c0376af6d" name="aff1414aeb2f65e4a53041f3c0376af6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff1414aeb2f65e4a53041f3c0376af6d">&#9670;&#160;</a></span>mSecond</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::mSecond {0}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad2329c25520f4f561e7143cef5997279" name="ad2329c25520f4f561e7143cef5997279"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2329c25520f4f561e7143cef5997279">&#9670;&#160;</a></span>mYear</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Time::mYear {0}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>Log/Header/Component/<a class="el" href="_time_8h_source.html">Time.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
